Don't try to grow the buffer more than allowed by the system#75
Don't try to grow the buffer more than allowed by the system#75
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #75 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 3 +1
Lines 337 378 +41
Branches 75 84 +9
=========================================
+ Hits 337 378 +41 ☔ View full report in Codecov by Sentry. |
|
I don't know how to reliably detect what is the maximum size for a typed array. Since Node.js 22, there is no arbitrary limit in V8. @lpatiny Any idea? |
|
Maybe using on node and in the browser Actually this is something very important also in nmr-load-save so if we have a package that is node / browser compatible it would be very usefull. |
|
I'm not sure the js heap size is relevant. ArrayBuffer data are notably not counted in it. |
|
And in browsers, the typed array size limit is unrelated to the memory limit. It's arbitrarily chosen by the browser. |
Closes: image-js/fast-png#42